<?php if(!defined('APP')) die('error!'); ?>
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>欢迎登录</title>
</head>
<body>
<form method="post">
    <table>
        <tr><td>欢迎登录</td></tr>
        <tr><th>用户名：</th><td><input type="text" name="username" /></td></tr>
        <tr><th>密码：</th><td><input type="password" name="password" /></td></tr>
        <tr><td>
                <input type="submit" value="登录" class="button" />
                <input type="reset" value="重新填写" class="button" />
            </td></tr>
    </table>
</form>
<?php if(!empty($error)): ?>
    <div class="error-box">登录失败，错误信息如下：
        <ul><?php foreach($error as $v) echo "<li>$v</li>"; ?></ul>
    </div>
<?php endIf; ?>
</body>
</html>
/**
 * Created by PhpStorm.
 * User: lijifeng
 * Date: 2016/11/23
 * Time: 16:31
 */